﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Meeting.Domain
{
    [Table("Dept")]
    public class Dept:Basedata
    {
        /// <summary>
        /// 部门ID
        /// </summary>
        [Key]
        public int DeptId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DeptName { get; set; }
        /// <summary>
        /// 上级部门ID
        /// </summary>
        public int? ParentId { get; set; } 
        /// <summary>
        /// 部门状态
        /// </summary>
        public int DeptStatus { get; set; }
        /// <summary>
        /// 成员数量
        /// </summary>
        public int DeptNumber { get; set; }
        /// <summary>
        /// 主管人员
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 部门描述
        /// </summary>
        public string DeptDesc { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdTime { get; set; } = DateTime.Now;
    }
}
